-- GENERATED SPELL FOR [Gurubashi Warrior] --


function spell0_11355(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(18501,pUnit)
pUnit:RegisterEvent('Sorts_11355', 5292, 1)
end

function spell1_11355(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(11428,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11355', 2261, 1)
end

function Sorts_11355(pUnit, Event)
local choix_sorts_11355 = math.random(0, 1)
if choix_sorts_11355 == 0 then
pUnit:RegisterEvent('spell0_11355', 1, 1)
end
if choix_sorts_11355 == 1 then
pUnit:RegisterEvent('spell1_11355', 1, 1)
end
end

function mob11355_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11355', math.random(1500, 3000), 1)
end

function mob11355_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11355_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11355_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11355, 1, 'mob11355_Action')
RegisterUnitEvent(11355, 2, 'mob11355_Leave')
RegisterUnitEvent(11355, 3, 'mob11355_Kill')
RegisterUnitEvent(11355, 4, 'mob11355_Die')
